//
//  OAMessageModel.h
//  OANetworkManager_Example
//
//  Created by TFAppleWork-Summer on 2018/2/24.
//  Copyright © 2018年 GuoRui. All rights reserved.
//

typedef NS_ENUM(NSInteger,CheckType) {
    CheckTypeNeedApproval    = 100, // 需要审批
    CheckTypeNeedCopyTo      = 101, // 需要抄送
    CheckTypeReceipt         = 102, // 审批回执
    CheckTypeCopyToReceipt   = 103, // 抄送回执
};

typedef NS_ENUM(NSInteger , MessageType) {
    
    MessageTypeSaveException      = 100, // 异常维护
    MessageTypeDailyReport        = 101, // 日报
    MessageTypeLeave              = 102, // 请假
    MessageTypeOverTime           = 103, // 加班登记
};

#import "OABaseModel.h"

@interface OAMessageModel : OABaseModel

/**
 审批类型 100- 需要审批 101-需要抄送 102-审批回执 103-抄送回执
 */
@property (nonatomic, assign) CheckType checkType;

/**
 消息内容
 */
@property (nonatomic, copy) NSString *content;

/**
 1- 已读 2 - 未读
 */
@property (nonatomic,assign)NSInteger isRead;

/**
 消息id
 */
@property (nonatomic, copy) NSString *messageId;

/**
 100 - 异常维护 101 - 日报 102 - 请假 103 - 加班登记
 */
@property (nonatomic, assign) MessageType reportType;

@end
